home *** CD-ROM | disk | FTP | other *** search
/ Die Speccy' 97 / Die Speccy' 97.iso / amiga_system / the_aminet / comm / bbs / maxsbbsus.lha / MAX154 / TBM / Scripts / 4AM.scp next >
Text File  |  1995-04-25  |  2KB  |  66 lines

  1.  
  2.  
  3. This is executed from the st-seq, waits until four in the morning, then does
  4. a few various things.  In the st-seq, it says:
  5.  
  6.  
  7. Run >nil: Execute BBS:Userfiles/scripts/4AM.scp
  8.  
  9.  
  10. That lets the st-seq window close.  It runs the FileGen door, to sort the
  11. board's files alphabetically, by size and by date, then makes an LHA file of
  12. them and copies them to the board.  Note it makes a FileNote for each file,
  13. just to be cool, and also note the "COM" string on the of the Copy command;
  14. that keeps the Filenote intact in the file.  
  15.  
  16.   The scriptfile then updates the two other Configs, and whatever else you
  17. want it to do:
  18.  
  19.  
  20. wait until 04:00
  21.  
  22. cd BBS:
  23. Copy TBMBBS.config3 MAXsBBS.config        ; for any doors that might go 
  24. wait 1                                    ; looking for this exact filename
  25.  
  26.  
  27. ; run FileGen
  28.  
  29. Doors/filegen/Filelistgen Ram:List.A.temp ALPHA 22 49 50 69 95 96 97 98 99
  30. cd Ram:
  31. Join BBS:Doors/FileGen/head1.txt List.A.temp as List.A.txt
  32. lha a BigList1 List.A.txt
  33. wait 1
  34. filenote BIGLIST1.lha "TBMBBS list of all files, alphabetically"
  35.  
  36. cd BBS:
  37. Doors/filegen/Filelistgen Ram:List.D.temp DATE 22 49 50 69 95 96 97 98 99
  38. cd Ram:
  39. Join BBS:Doors/FileGen/head2.txt List.D.temp as List.D.txt
  40. lha a BigList2 List.D.txt
  41. wait 1
  42. filenote BIGLIST2.lha "TBMBBS list of all files, by date"
  43.  
  44. cd BBS:
  45. Doors/filegen/Filelistgen Ram:List.S.temp SIZE 22 49 50 69 95 96 97 98 99
  46. cd Ram:
  47. Join BBS:Doors/FileGen/head3.txt List.S.temp as List.S.txt
  48. lha a BigList3 List.S.txt
  49. wait 1
  50. filenote BIGLIST3.lha "TBMBBS list of all files, by size"
  51.  
  52. copy BigList1.lha BBS:Files/Misc COM
  53. copy BigList2.lha BBS:Files/Misc COM
  54. copy BigList3.lha BBS:Files/Misc COM
  55. wait 1
  56.  
  57. delete #?list#? FK quiet
  58. wait 1
  59.  
  60. delete utils:Fish/#? quiet
  61. wait 1
  62.  
  63. execute BBS:UserFiles/Update/Update.scp2   ; updates all nodes
  64. copy SD0:Files BBS:Files                   ; backs up SD0:Files
  65.  
  66.